<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="/wondershare/js/jquery.js"></script> 
<link href="/wondershare/styles/main.css" rel="stylesheet" type="text/css" />
<link href="/wondershare/styles/general.css" rel="stylesheet" type="text/css" />
<title>发布<{$title}>页</title>
<script>
function check_submit()
{
  if($('#web').val().replace(/(^\s*)|(\s*$)/g, "")=="0")
  {
      alert('请选择网站发布！');
      return false;
  }
  return true;
}
function backupFile()
{
	if($('#web').val().replace(/(^\s*)|(\s*$)/g, "")=="0")
	{
	  alert('请选择网站发布！');
	  return false;
	}     
	if(confirm('确定要备份站点吗？'))
	{
		//window.location.href="http://74.86.224.106/1234gfwaef/backupvhost.php?web="+$('#web').val();
	}
	return false;
}
</script>
</head>

<body>
<h1>
<span class="action-span">
<a href="/wondershare/release.php">发布列表</a>
</span>
<span class="action-span1">
<a href="i#">管理中心</a>
</span>
<span id="search_id" class="action-span1"> - 发布<{$title}> </span>
<div style="clear:both"></div>
</h1>
<div id="tabbar-div">
      <p>
     
      </p>
    </div>
<div id="tabbody-div"  style=" width:1100px;">
      <form  name="theForm" method="post" action="/wondershare/release.php?action=add_edit" onsubmit="return check_submit();">
        <table align="center" width="90%" id="general-table">
          <tbody>
		  <tr>
            <td class="label">选择网站：</td>
            <td><select name="web" id="web">
              <option value="0" selected="selected">请选择域名</option>
              <{foreach from=$site item=v key=k}>
              <{if $v|in_array:$MPower || $AID == 1}><option value="<{$k}>"><{$k}></option><{/if}>
              <{/foreach}>
            </select>
            <span class="require-field">*</span></td>
          </tr>
		  <tr>
            <td class="label">发布描述：</td>
  			<td>
			  <textarea cols="48" rows="6" id="contents" name="contents"></textarea></td>
          </tr>        
<tr>
            <td class="label">网站备份：</td>
            <td><input type="radio" name="backup" value="1" onclick="return backupFile();" />备份<input type="radio" name="backup" value="0"/>不备份</td>
          </tr>
        </tbody></table>

        <div  style="margin-left:380px; margin-top:20px;">
          <input type="hidden"  name="id" value="<{$release_info.id}>">
          <input type="submit"   class="button" value="发布" name="sub_from">
          <input type="reset" class="button" value=" 重置 ">
        </div>
        <input type="hidden" value="<{$form_act}>" name="act" >
      </form>
    </div>
</body>
</html>
